# Description: MATE için güçlü bir metin editörü
# URL: http://www.mate-desktop.org/
# Packager: yasarciv67@gmail.com
# Depends on: intltool itstool gobject-introspection iso-codes gtksourceview3 libpeas 

name=pluma
version=1.18.2
release=1
source=(http://pub.mate-desktop.org/releases/${version%.*}/$name-$version.tar.xz)

build() {
  cd $name-$version
    sed -i 's/python/python2/' plugins/externaltools/data/switch-c.tool.in
    PYTHON=/usr/bin/python2 ./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib/$name \
        --enable-gtk-doc=no \
        --enable-python

    #https://bugzilla.gnome.org/show_bug.cgi?id=656231
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
  make DESTDIR=$PKG install
}
